package com.smasher.update.dialog


abstract class BaseDialog : BaseDialogFragment() {
    override fun onStart() {
        super.onStart()
        val dialog = dialog
        if (dialog != null) {
            val window = dialog.window
            window!!.setLayout(getWidth(), getHeight())
        }
    }

    abstract fun getWidth(): Int

    abstract fun getHeight(): Int
}
